package com.kingdee;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Peanut on 2017/12/11.
 */
@RestController
@Controller
public class DemoCtrl {

    @Autowired
    DemoService demoService;

    @GetMapping
    public HttpEntity hello() {
        return ResponseEntity.ok(demoService.printData());
    }
}
